package com.lu.service.impl;

import com.lu.dao.UserDao;
import com.lu.dao.impl.UserDaoImpl;
import com.lu.pojo.User;
import com.lu.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    @Override
    public User getOneUser(String uname, String upassword) {
        return userDao.getOneUser(uname,upassword);
    }

    @Override
    public int addOneUser(String uname, String upassword) {
        return userDao.addOneUser(uname,upassword);
    }

    @Override
    public int delOneUser(int uid) {
        return userDao.delOneUser(uid);
    }

    @Override
    public int editOneUser(User user) {
        return userDao.editOneUser(user);
    }

    @Override
    public User getOneUser(int uid) {
        return userDao.getOneUser(uid);
    }
}
